

/*
/ 全局静态变量定义
切勿随意修改数组次序，很多地方已下标方式使用
 */

import Cookies from 'js-cookie'

export const page = {
  limit: [20, 40, 60, 80, 100],
  page: 1,
  layout: 'total, sizes, prev, pager, next, jumper'
}
export const page1 = {
  limit: [ 100,200],
  page: 1,
  layout: 'total, sizes, prev, pager, next, jumper'
}

/**
 * 无限极分类type
 * @type {{product: number, attachment: number, menu: number, article: number, operator: number}}
 */
export const categoryType = [ // 1 产品分类，2 附件分类，3 文章分类， 4 设置分类， 5 菜单分类， 6 配置分类， 7 秒杀配置
  { name: '产品分类', value: 1, shortName: '产品' },
  { name: '附件分类', value: 2, shortName: '附件' },
  { name: '文章分类', value: 3, shortName: '文章' },
  { name: '设置分类', value: 4, shortName: '设置' },
  { name: '菜单分类', value: 5, shortName: '菜单' },
  { name: '配置分类', value: 6, shortName: '配置' },
  { name: '秒杀配置', value: 7, shortName: '秒杀' }
]

export const roleListStatus = [
  { label: '全部', value: '' },
  { label: '显示', value: 1 },
  { label: '不显示', value: 0 }
]

export const showHiddenStatus = [
  { label: '显示', value: '‘1’' },
  { label: '不显示', value: '‘0’' }
]

export const switchStatus = [
  { label: '开启', value: 1 },
  { label: '关闭', value: 0 }
]

export const deletedOrNormal = [
  { label: '正常', value: 0 },
  { label: '已删除', value: 1 }
]

/**
 * 暂时弃用
 * @type {*[]}
 */
export const configCategory = [
  { label: '系统', value: '0' },
  { label: '应用', value: '1' },
  { label: '支付', value: '2' },
  { label: '其他', value: '3' }
]

/**
 * 表单配置集合集中配置
 * @type {{id: number, dis: string}[]}
 */
export const formConfigIds = [
  { id: 84, dis: '微信公众号表单配置' },
  { id: 86, dis: '秒杀配置' }
]

/**
 * 时间选择器
 */
export const fromList = {
  title: '选择时间',
  custom: true,
  fromTxt: [
    { text: '全部', val: '' },
    { text: '今天', val: 'today' },
    { text: '昨天', val: 'yesterday' },
    { text: '最近7天', val: 'lately7' },
    { text: '最近30天', val: 'lately30' },
    { text: '本月', val: 'month' },
    { text: '本年', val: 'year' }
  ]
}

// 统计管理时间选择器
export const timeList = {
  title: '选择时间',
  custom: true,
  fromTxt: [
    { text: '昨天', val: `` },
    { text: '最近7天', val: 'lately7' },
    { text: '最近30天', val: 'lately30' },
  ]
}

export const selOptions = {
  JavaInfo: JSON.parse(Cookies.get("JavaInfo")===undefined?'{}':Cookies.get("JavaInfo")),
  status:[
    {value: 0, label: '正常'},
    {value: 1, label: '冻结'},
  ],
  statusType:[
    {value: 0, label: '启用'},
    {value: 1, label: '停用'},
  ],
  targertType:[
    {value: 0, label: '不跳转'},
    {value: 1, label: '跳转'},
  ],
  freeType:[
    {value: 0, label: '免费'},
    {value: 1, label: '付费'},
  ],
  useType:[
    {value: 0, label: '未使用'},
    {value: 1, label: '已使用'},
  ],
  wlStatus:[
    {value: 0, label: '待审核'},
    {value: 1, label: '审核通过'},
    {value: 2, label: '已打款'},
    {value: 3, label: '拒绝'},
    {value: 99, label: '打款失败'},
  ],
  lvingType:[
    {value: 0, label: '图文'},
    {value: 1, label: '视频'},
  ],
  lvingStatus:[
    {value: 0, label: '正常'},
    {value: 1, label: '封禁'},
  ],
  userworksType:[
    {value: 0, label: '相册'},
    {value: 1, label: '作品集'},
  ],
  goodsStatus:[
    {value: 0, label: '上架'},
    {value: 1, label: '下架'},
  ],
  goodsType:[
    {value: 1, label: 'vip'},
    {value: 2, label: 'svip'},
  ],
  payType:[
    {value: 0, label: '微信'},
    {value: 1, label: '支付宝'},
  ],
  payStatus:[
    {value: 0, label: '等待支付'},
    {value: 1, label: '支付成功'},
  ],
  onlineStatus:[
    {value: 0, label: '离线'},
    {value: 1, label: '在线'},
  ],
  authStatus:[
    {value: 0, label: '等待认证'},
    {value: 1, label: '认证成功'},
    {value: 2, label: '认证拒绝'},
  ],
  authStatus2:[
    {value: 1, label: '认证成功'},
    {value: 2, label: '认证拒绝'},
  ],
  sexType:[
    {value: 0, label: '女'},
    {value: 1, label: '男'},
  ],
  handleStatus:[
    {value: 0, label: '未处理'},
    {value: 1, label: '已处理'},
  ],
  oType:[
    {value: 0, label: '举报动态'},
    {value: 1, label: '举报用户'},
  ],
  adType:[
    {value: '0', label: '开屏广告'},
    {value: '1', label: 'banner广告'},
    {value: '2', label: '激励视频'},
    {value: '3', label: '插屏广告'},
    {value: '4', label: '语音红包'},
  ],
  adplatform:[
    {value: 'chuanshanjia', label: 'chuanshanjia'},
    {value: 'chuanshanjiajuhe', label: 'chuanshanjiajuhe'},
    {value: 'youlianghui', label: 'youlianghui'},
    {value: 'kuaishou', label: 'kuaishou'},
    {value: 'baidu', label: 'baidu'},
    {value: 'sigmob', label: 'sigmob'},
    {value: 'xinliangxiang', label: 'xinliangxiang'},
  ],adlevel:[
    {value: 0, label: '任务完成奖励'},
    {value: 1, label: '任务奖励'},
    // {value: 2, label: '上级分润'},
    {value: 3, label: '下级分润'},
  ]
  ,incometype:[
    {value: 0, label: '用户收益'},
    {value: 1, label: '机构收益'},
    // {value: 2, label: '上级分润'},
  ],viptype:[
    {value: 0, label: '普通任务'},
    {value: 1, label: 'VIP1任务'},
    {value: 2, label: 'VIP2任务'},
    {value: 3, label: 'VIP3任务'},
  ],authlStatus:[
    {value: 0, label: '等待审核'},
    {value: 1, label: '审核成功'},
    {value: 2, label: '自动审核'},
    {value: 99, label: '审核拒绝'},
  ],  cdkType:[
    {value: 1, label: 'vip1'},
    {value: 2, label: 'vip2'},
    {value: 3, label: 'vip3'},
  ],  partnerstatus:[
    {value: 0, label: '普通用户'},
    {value: 1, label: '合作伙伴'},
    {value: 2, label: '员工号'},
    {value: 3, label: '特殊账号'},
  ], vipType:[
    {value: 0, label: '非VIP'},
    {value: 1, label: 'vip1'},
    {value: 2, label: 'vip2'},
    {value: 3, label: 'vip3'},
  ],
}
